# -*- coding: utf-8 -*-


def console(game):
    print '%s|%s|%s' % (game['A1'] or ' ', game['A2'] or ' ', game['A3'] or ' ')
    print '%s|%s|%s' % (game['B1'] or ' ', game['B2'] or ' ', game['B3'] or ' ')
    print '%s|%s|%s' % (game['C1'] or ' ', game['C2'] or ' ', game['C3'] or ' ')


def testConsole():
    game = dict(A1='O', A2='X', A3=None, B1=None, B3=None, B2='X', C2='O', C3='O', C1='X')
    console(game)


if __name__ == '__main__':
    testConsole()
